from selenium import webdriver
import time

mobileEmulation = {'deviceName':'iPhone XR'}
options= webdriver.ChromeOptions()

options.add_experimental_option("mobileEmulation",mobileEmulation)

driver = webdriver.Chrome(options=options)

driver.get('https://www.baidu.com')

time.sleep(3)
driver.quit()